package com.adhere.common.constants;

/**
 * 权限相关常量
 *
 * @author WT
 * @date 2022/02/07 17:13:31
 */
public class SecurityConstants {

    private SecurityConstants() {}

    /**
     * jwt 和 缓存 用户信息对应的 key
     */
    public static final String USER_KEY = "user_key";

    /**
     * 用户 id
     */
    public static final String USER_ID = "user_id";

    /**
     * 用户登录名
     */
    public static final String LOGIN_NAME = "login_name";

    /**
     * 自定义请求来源的 header 头 name
     */
    public static final String FROM_SOURCE = "from-source";

    public static final String TOKEN_AUTHORIZATION = "Authorization";

    public static final String TOKEN_PREFIX = "Bearer ";

    public static final String TOKEN_SECRET = "adhere-authorization";

    /**
     * 登录用户
     */
    public static final String LOGIN_USER = "login_user";

    
}
